package com.demo.controller;

import com.demo.vo.TestVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 测试从request对象中获取请求体参数控制器
 * @Author Dang Xianyue
 * @Date 2020-08-08 12:34
 * @Version 1.0
 */
@RestController
@RequestMapping("/test")
public class TestRequestGetInputStreamController {
    @RequestMapping("/test1")
    public void test1(@RequestBody TestVO testVO){
        System.out.println("Controller test1："+testVO);
    }

    @RequestMapping("/test2")
    public void test2(TestVO testVO){
        System.out.println("Controller test2："+testVO);
    }
}
